package com.imagine.mapper;

import com.imagine.entity.Delegation;
import com.imagine.entity.vo.BargainVo;
import com.imagine.entity.vo.CapitalVo;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created by liangyue on 2017/9/26.
 */
public interface DelegationMapper {
    Delegation getDelegationById(int delegationId);
    int insertDelegation(Delegation delegation);
    ArrayList<Delegation> getDelegationSubmitted();
    ArrayList<String> getSecuIdDelegSubmitted();

    ArrayList<Delegation> getBuyDelegationListById(String securityId);
    ArrayList<Delegation> getSellDelegationListById(String securityId);
    void updateDelegationState(HashMap hashMap);
    void makeBargain(HashMap hashMap);

    ArrayList<BargainVo> getBargainByCId(String cAccountId);
    ArrayList<Delegation> getDelegationsByCId(String cAccountId);

    ArrayList<CapitalVo> getDelegationsAboutCapitalFlowByCId(String cAccountId);


}
